package com.mgq.algorithm.graph;

import java.util.HashMap;
import java.util.HashSet;

/**
 * @author MaGuangQi
 * 图
 * @date 2022-01-03 21:40
 **/
public class Graph {
    //node, key: node的val
    //value是node
    HashMap<Integer, Node> nodes = new HashMap<>();
    HashSet<Edge> edges = new HashSet<>();

    public Graph() {

    }

    public Graph(HashMap<Integer, Node> nodes, HashSet<Edge> edges) {
        this.nodes = nodes;
        this.edges = edges;
    }
}
